#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:6031)

#include <stdio.h>

struct st
{
	char name[20];
};

struct
{
	int a;
}b = { 10 };

int main()
{
	char name[10] = { 0 };
	//name = "zhangsan";
	struct st a = { .name = "zhangsan" };
	//a.name = "lisi";
	printf("%s\n", a.name);

	printf("%d\n", b.a);

	b.a = 10;
	b.a = 20;
	printf("%d\n", b.a);

	b.a = 18;
	printf("%d\n", b.a);


	return 0;
}